package xin.clips.system.domain.gy;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import xin.clips.common.annotation.Excel;
import xin.clips.common.core.domain.BaseEntity;
import xin.clips.common.core.domain.entity.SysUser;

/**
 * 设备消息绑定对象 gy_device_mgt
 *
 * @author yuanzy
 * @date 2023-02-26
 */
public class GyDeviceMgt extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private Integer deviceType;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 是否为责任人 */
    @Excel(name = "是否为责任人")
    private Integer isPrincipal;

    private SysUser user;

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setIsPrincipal(Integer isPrincipal)
    {
        this.isPrincipal = isPrincipal;
    }

    public Integer getIsPrincipal()
    {
        return isPrincipal;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceType", getDeviceType())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isPrincipal", getIsPrincipal())
            .toString();
    }
}
